var grid;
function initGrid(){
	grid = $("#maingrid").ligerGrid({
		url:HTR.U('index/integrallog/pageQuery'),
		pageSize:HTR.pageSize,
		pageSizeOptions:HTR.pageSizeOptions,
		height:'99%',
        width:'100%',
        minColToggle:6,
        rownumbers:true,
        totalRender: f_totalRender,
        columns: [
	        { display: '客户姓名', name: 'user_name',isSort: false,width:100},
	        { display: '数量', name: 'num',isSort: false,width:70},
	        { display: '类型', name: 'type',isSort: false,width:70},
	        { display: '描述', name: 'desc',isSort: false,align:'left'},
	        { display: '时间', name: 'createTime',isSort: false,width:170}
        ]
    });
}
function f_totalRender(data, currentPageData){
    return "总积分："+data.SumIntegral; 
}
function loadGrid(){
	var params = HTR.getParams('.j-ipt');
	grid.set('url',HTR.U('index/integrallog/pageQuery',params));
}